package com.zuul.gateway.hystrix;

import org.springframework.cloud.netflix.zuul.filters.route.FallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置Hystrix的回退
 */
@Configuration
public class FallbackConfig {

	@Bean
	public FallbackProvider saleFallbackProvider() {
		return new MyFallbackProvider();
	}
}
